Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fbx camera #1231

Merged
merged 7 commits into from
Jul 31, 2023
Merged

fix fbx camera #1231

merged 7 commits into from
Jul 31, 2023

Conversation

aaronmack
Copy link
Collaborator

FBX Camra

image

{
    "nodes": {
        "13114eba-ExtractCameraData": {
            "name": "ExtractCameraData",
            "inputs": {
                "key": {
                    "link": null,
                    "type": "string",
                    "default-value": "Cam-vip",
                    "control": {
                        "name": "String"
                    }
                },
                "camobject": {
                    "link": "main:6942eab3-EvalFBXAnim:[node]/outputs/camera",
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "pos": {
                    "type": ""
                },
                "up": {
                    "type": ""
                },
                "view": {
                    "type": ""
                },
                "focL": {
                    "type": ""
                },
                "haov": {
                    "type": ""
                },
                "waov": {
                    "type": ""
                },
                "hfov": {
                    "type": ""
                },
                "filmW": {
                    "type": ""
                },
                "filmH": {
                    "type": ""
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -795.6754760742188,
                6859.25927734375
            ],
            "options": []
        },
        "3ef1b82-NumericOperator": {
            "name": "NumericOperator",
            "inputs": {
                "lhs": {
                    "link": "main:45c0598f-PrintNumeric:[node]/outputs/value",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "rhs": {
                    "link": "main:532e9da5-NumericFloat:[node]/outputs/value",
                    "type": "NumericObject",
                    "default-value": 0.0010000000474974514,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "op_type": {
                    "value": "mul",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "add",
                            "sub",
                            "mul",
                            "div",
                            "mod",
                            "and",
                            "or",
                            "xor",
                            "shr",
                            "shl",
                            "cmpge",
                            "cmple",
                            "cmpgt",
                            "cmplt",
                            "cmpne",
                            "cmpeq",
                            "land",
                            "lor",
                            "pos",
                            "neg",
                            "inv",
                            "not",
                            "atan2",
                            "pow",
                            "max",
                            "min",
                            "fmod",
                            "dot",
                            "cross",
                            "distance",
                            "length",
                            "normalize",
                            "abs",
                            "sqrt",
                            "sin",
                            "cos",
                            "tan",
                            "asin",
                            "acos",
                            "atan",
                            "exp",
                            "log",
                            "floor",
                            "ceil",
                            "toint",
                            "tofloat",
                            "anytrue",
                            "alltrue",
                            "copy",
                            "copyr"
                        ]
                    },
                    "type": "enum add sub mul div mod and or xor shr shl cmpge cmple cmpgt cmplt cmpne cmpeq land lor pos neg inv not atan2 pow max min fmod dot cross distance length normalize abs sqrt sin cos tan asin acos atan exp log floor ceil toint tofloat anytrue alltrue copy copyr"
                }
            },
            "outputs": {
                "ret": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                1252.5296630859376,
                6832.83447265625
            ],
            "options": []
        },
        "4074a628-PrintNumeric": {
            "name": "PrintNumeric",
            "inputs": {
                "value": {
                    "link": "main:13114eba-ExtractCameraData:[node]/outputs/filmW",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "hint": {
                    "value": "cam width:",
                    "control": {
                        "name": "String"
                    },
                    "type": "string"
                }
            },
            "outputs": {
                "value": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                336.378173828125,
                8062.13671875
            ],
            "options": []
        },
        "45c0598f-PrintNumeric": {
            "name": "PrintNumeric",
            "inputs": {
                "value": {
                    "link": "main:13114eba-ExtractCameraData:[node]/outputs/up",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "hint": {
                    "value": "cam up:",
                    "control": {
                        "name": "String"
                    },
                    "type": "string"
                }
            },
            "outputs": {
                "value": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                340.8289489746094,
                6787.14892578125
            ],
            "options": []
        },
        "532e9da5-NumericFloat": {
            "name": "NumericFloat",
            "inputs": {
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "value": {
                    "value": 0.0010000000474974514,
                    "control": {
                        "name": "Float"
                    },
                    "type": "float"
                }
            },
            "outputs": {
                "value": {
                    "type": "float"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                365.13128662109377,
                6004.55810546875
            ],
            "options": []
        },
        "65379e6c-PrintNumeric": {
            "name": "PrintNumeric",
            "inputs": {
                "value": {
                    "link": "main:13114eba-ExtractCameraData:[node]/outputs/filmH",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "hint": {
                    "value": "cam height:",
                    "control": {
                        "name": "String"
                    },
                    "type": "string"
                }
            },
            "outputs": {
                "value": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                325.4632263183594,
                8467.8974609375
            ],
            "options": []
        },
        "6942eab3-EvalFBXAnim": {
            "name": "EvalFBXAnim",
            "inputs": {
                "frameid": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "data": {
                    "link": "main:6ca6f694-ReadFBXPrim:[node]/outputs/data",
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "animinfo": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "nodetree": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "bonetree": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "evalBlendShape": {
                    "value": false,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                },
                "interAnimData": {
                    "value": "TRUE",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "TRUE",
                            "FALSE"
                        ]
                    },
                    "type": "enum TRUE FALSE"
                },
                "printAnimData": {
                    "value": false,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                },
                "unit": {
                    "value": "FROM_MAYA",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "FROM_MAYA",
                            "DEFAULT"
                        ]
                    },
                    "type": "enum FROM_MAYA DEFAULT"
                },
                "writeData": {
                    "value": false,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                }
            },
            "outputs": {
                "prim": {
                    "type": ""
                },
                "camera": {
                    "type": ""
                },
                "light": {
                    "type": ""
                },
                "matName": {
                    "type": ""
                },
                "meshName": {
                    "type": ""
                },
                "pathName": {
                    "type": ""
                },
                "bsPrimsOrigin": {
                    "type": ""
                },
                "bsPrims": {
                    "type": "list"
                },
                "transDict": {
                    "type": ""
                },
                "quatDict": {
                    "type": ""
                },
                "scaleDict": {
                    "type": ""
                },
                "writeData": {
                    "type": ""
                },
                "visibility": {
                    "type": ""
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -1413.0283203125,
                6837.564453125
            ],
            "options": []
        },
        "6ca6f694-ReadFBXPrim": {
            "name": "ReadFBXPrim",
            "inputs": {
                "path": {
                    "link": null,
                    "type": "readpath",
                    "default-value": "C:/share/test/YYKMS_Cam/source/fbx/cam_vip.fbx",
                    "control": {
                        "name": "read path"
                    }
                },
                "hintPath": {
                    "link": null,
                    "type": "readpath",
                    "default-value": "-1",
                    "control": {
                        "name": "read path"
                    }
                },
                "generate": {
                    "link": null,
                    "type": "bool",
                    "default-value": false,
                    "control": {
                        "name": "Boolean"
                    }
                },
                "offset": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "visibility": {
                    "property": "dict-panel",
                    "dictlist-panel": {
                        "collasped": false,
                        "keys": {}
                    },
                    "link": null,
                    "type": "dict",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "indepData": {
                    "value": true,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                },
                "primitive": {
                    "value": false,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                },
                "printTree": {
                    "value": false,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                },
                "triangulate": {
                    "value": false,
                    "control": {
                        "name": "Boolean"
                    },
                    "type": "bool"
                },
                "udim": {
                    "value": "DISABLE",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "ENABLE",
                            "DISABLE"
                        ]
                    },
                    "type": "enum ENABLE DISABLE"
                }
            },
            "outputs": {
                "prim": {
                    "type": ""
                },
                "data": {
                    "type": ""
                },
                "datas": {
                    "property": "dict-panel",
                    "dictlist-panel": {
                        "collasped": false,
                        "keys": {}
                    },
                    "type": "dict"
                },
                "mats": {
                    "property": "dict-panel",
                    "dictlist-panel": {
                        "collasped": false,
                        "keys": {}
                    },
                    "type": "dict"
                },
                "animinfo": {
                    "type": ""
                },
                "nodetree": {
                    "type": ""
                },
                "bonetree": {
                    "type": ""
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -2123.789306640625,
                6850.4423828125
            ],
            "options": []
        },
        "83a5d93-PrintNumeric": {
            "name": "PrintNumeric",
            "inputs": {
                "value": {
                    "link": "main:13114eba-ExtractCameraData:[node]/outputs/focL",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "hint": {
                    "value": "cam focal length:",
                    "control": {
                        "name": "String"
                    },
                    "type": "string"
                }
            },
            "outputs": {
                "value": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                348.6846923828125,
                7630.04150390625
            ],
            "options": []
        },
        "918b1708-NumericOperator": {
            "name": "NumericOperator",
            "inputs": {
                "lhs": {
                    "link": "main:9488b2d3-PrintNumeric:[node]/outputs/value",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "rhs": {
                    "link": "main:532e9da5-NumericFloat:[node]/outputs/value",
                    "type": "NumericObject",
                    "default-value": 0.0010000000474974514,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "op_type": {
                    "value": "mul",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "add",
                            "sub",
                            "mul",
                            "div",
                            "mod",
                            "and",
                            "or",
                            "xor",
                            "shr",
                            "shl",
                            "cmpge",
                            "cmple",
                            "cmpgt",
                            "cmplt",
                            "cmpne",
                            "cmpeq",
                            "land",
                            "lor",
                            "pos",
                            "neg",
                            "inv",
                            "not",
                            "atan2",
                            "pow",
                            "max",
                            "min",
                            "fmod",
                            "dot",
                            "cross",
                            "distance",
                            "length",
                            "normalize",
                            "abs",
                            "sqrt",
                            "sin",
                            "cos",
                            "tan",
                            "asin",
                            "acos",
                            "atan",
                            "exp",
                            "log",
                            "floor",
                            "ceil",
                            "toint",
                            "tofloat",
                            "anytrue",
                            "alltrue",
                            "copy",
                            "copyr"
                        ]
                    },
                    "type": "enum add sub mul div mod and or xor shr shl cmpge cmple cmpgt cmplt cmpne cmpeq land lor pos neg inv not atan2 pow max min fmod dot cross distance length normalize abs sqrt sin cos tan asin acos atan exp log floor ceil toint tofloat anytrue alltrue copy copyr"
                }
            },
            "outputs": {
                "ret": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                1261.77978515625,
                6406.1923828125
            ],
            "options": []
        },
        "9488b2d3-PrintNumeric": {
            "name": "PrintNumeric",
            "inputs": {
                "value": {
                    "link": "main:13114eba-ExtractCameraData:[node]/outputs/pos",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "hint": {
                    "value": "cam pos:",
                    "control": {
                        "name": "String"
                    },
                    "type": "string"
                }
            },
            "outputs": {
                "value": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                327.516357421875,
                6364.275390625
            ],
            "options": []
        },
        "964f0804-CihouMayaCameraFov": {
            "name": "CihouMayaCameraFov",
            "inputs": {
                "fit_gate": {
                    "link": null,
                    "type": "enum Horizontal Vertical",
                    "default-value": "Horizontal",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "Horizontal",
                            "Vertical"
                        ]
                    }
                },
                "focL": {
                    "link": "main:83a5d93-PrintNumeric:[node]/outputs/value",
                    "type": "float",
                    "default-value": 35.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "fw": {
                    "link": "main:4074a628-PrintNumeric:[node]/outputs/value",
                    "type": "float",
                    "default-value": 36.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "fh": {
                    "link": "main:65379e6c-PrintNumeric:[node]/outputs/value",
                    "type": "float",
                    "default-value": 28.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "nx": {
                    "link": null,
                    "type": "float",
                    "default-value": 9000.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "ny": {
                    "link": null,
                    "type": "float",
                    "default-value": 7000.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "fov": {
                    "type": "float"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                1261.6412353515626,
                7708.5654296875
            ],
            "options": []
        },
        "9cae7edb-PrintNumeric": {
            "name": "PrintNumeric",
            "inputs": {
                "value": {
                    "link": "main:13114eba-ExtractCameraData:[node]/outputs/view",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "hint": {
                    "value": "cam view:",
                    "control": {
                        "name": "String"
                    },
                    "type": "string"
                }
            },
            "outputs": {
                "value": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                356.373779296875,
                7200.34814453125
            ],
            "options": []
        },
        "cd9db106-NumericOperator": {
            "name": "NumericOperator",
            "inputs": {
                "lhs": {
                    "link": "main:9cae7edb-PrintNumeric:[node]/outputs/value",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "rhs": {
                    "link": "main:532e9da5-NumericFloat:[node]/outputs/value",
                    "type": "NumericObject",
                    "default-value": 0.0010000000474974514,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "op_type": {
                    "value": "mul",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "add",
                            "sub",
                            "mul",
                            "div",
                            "mod",
                            "and",
                            "or",
                            "xor",
                            "shr",
                            "shl",
                            "cmpge",
                            "cmple",
                            "cmpgt",
                            "cmplt",
                            "cmpne",
                            "cmpeq",
                            "land",
                            "lor",
                            "pos",
                            "neg",
                            "inv",
                            "not",
                            "atan2",
                            "pow",
                            "max",
                            "min",
                            "fmod",
                            "dot",
                            "cross",
                            "distance",
                            "length",
                            "normalize",
                            "abs",
                            "sqrt",
                            "sin",
                            "cos",
                            "tan",
                            "asin",
                            "acos",
                            "atan",
                            "exp",
                            "log",
                            "floor",
                            "ceil",
                            "toint",
                            "tofloat",
                            "anytrue",
                            "alltrue",
                            "copy",
                            "copyr"
                        ]
                    },
                    "type": "enum add sub mul div mod and or xor shr shl cmpge cmple cmpgt cmplt cmpne cmpeq land lor pos neg inv not atan2 pow max min fmod dot cross distance length normalize abs sqrt sin cos tan asin acos atan exp log floor ceil toint tofloat anytrue alltrue copy copyr"
                }
            },
            "outputs": {
                "ret": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                1250.07080078125,
                7250.52734375
            ],
            "options": []
        },
        "d50f6b85-MakeCamera": {
            "name": "MakeCamera",
            "inputs": {
                "pos": {
                    "link": "main:918b1708-NumericOperator:[node]/outputs/ret",
                    "type": "vec3f",
                    "default-value": [
                        0.0,
                        0.0,
                        5.0
                    ],
                    "control": {
                        "name": "Float Vector 3"
                    }
                },
                "up": {
                    "link": "main:3ef1b82-NumericOperator:[node]/outputs/ret",
                    "type": "vec3f",
                    "default-value": [
                        0.0,
                        1.0,
                        0.0
                    ],
                    "control": {
                        "name": "Float Vector 3"
                    }
                },
                "view": {
                    "link": "main:cd9db106-NumericOperator:[node]/outputs/ret",
                    "type": "vec3f",
                    "default-value": [
                        0.0,
                        0.0,
                        -1.0
                    ],
                    "control": {
                        "name": "Float Vector 3"
                    }
                },
                "near": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.009999999776482582,
                    "control": {
                        "name": "Float"
                    }
                },
                "far": {
                    "link": null,
                    "type": "float",
                    "default-value": 20000.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "fov": {
                    "link": "main:964f0804-CihouMayaCameraFov:[node]/outputs/fov",
                    "type": "float",
                    "default-value": 45.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "aperture": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.10000000149011612,
                    "control": {
                        "name": "Float"
                    }
                },
                "focalPlaneDistance": {
                    "link": null,
                    "type": "float",
                    "default-value": 2.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "camera": {
                    "type": "CameraObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                2274.572509765625,
                6459.83984375
            ],
            "options": [
                "VIEW"
            ]
        }
    }
}

ABC Camera

image

{
    "nodes": {
        "12fc6a78-NumericOperator": {
            "name": "NumericOperator",
            "inputs": {
                "lhs": {
                    "link": "main:b779c5b6-GetAlembicCamera:[node]/outputs/up",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "rhs": {
                    "link": "main:b779c5b6-GetAlembicCamera:[node]/outputs/right",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "op_type": {
                    "value": "cross",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "add",
                            "sub",
                            "mul",
                            "div",
                            "mod",
                            "and",
                            "or",
                            "xor",
                            "shr",
                            "shl",
                            "cmpge",
                            "cmple",
                            "cmpgt",
                            "cmplt",
                            "cmpne",
                            "cmpeq",
                            "land",
                            "lor",
                            "pos",
                            "neg",
                            "inv",
                            "not",
                            "atan2",
                            "pow",
                            "max",
                            "min",
                            "fmod",
                            "dot",
                            "cross",
                            "distance",
                            "length",
                            "normalize",
                            "abs",
                            "sqrt",
                            "sin",
                            "cos",
                            "tan",
                            "asin",
                            "acos",
                            "atan",
                            "exp",
                            "log",
                            "floor",
                            "ceil",
                            "toint",
                            "tofloat",
                            "anytrue",
                            "alltrue",
                            "copy",
                            "copyr"
                        ]
                    },
                    "type": "enum add sub mul div mod and or xor shr shl cmpge cmple cmpgt cmplt cmpne cmpeq land lor pos neg inv not atan2 pow max min fmod dot cross distance length normalize abs sqrt sin cos tan asin acos atan exp log floor ceil toint tofloat anytrue alltrue copy copyr"
                }
            },
            "outputs": {
                "ret": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -755.2489222937754,
                3759.688755666508
            ],
            "options": []
        },
        "236f024b-MakeCamera": {
            "name": "MakeCamera",
            "inputs": {
                "pos": {
                    "link": "main:2f3379ea-NumericOperator:[node]/outputs/ret",
                    "type": "vec3f",
                    "default-value": [
                        0.0,
                        0.0,
                        5.0
                    ],
                    "control": {
                        "name": "Float Vector 3"
                    }
                },
                "up": {
                    "link": "main:b779c5b6-GetAlembicCamera:[node]/outputs/up",
                    "type": "vec3f",
                    "default-value": [
                        0.0,
                        1.0,
                        0.0
                    ],
                    "control": {
                        "name": "Float Vector 3"
                    }
                },
                "view": {
                    "link": "main:12fc6a78-NumericOperator:[node]/outputs/ret",
                    "type": "vec3f",
                    "default-value": [
                        0.0,
                        0.0,
                        -1.0
                    ],
                    "control": {
                        "name": "Float Vector 3"
                    }
                },
                "near": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.0010000000474974514,
                    "control": {
                        "name": "Float"
                    }
                },
                "far": {
                    "link": null,
                    "type": "float",
                    "default-value": 4000000000.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "fov": {
                    "link": "main:4cae016f-CihouMayaCameraFov:[node]/outputs/fov",
                    "type": "float",
                    "default-value": 45.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "aperture": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.10000000149011612,
                    "control": {
                        "name": "Float"
                    }
                },
                "focalPlaneDistance": {
                    "link": null,
                    "type": "float",
                    "default-value": 2.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "camera": {
                    "type": "CameraObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                176.34562797875607,
                3499.149120146487
            ],
            "options": []
        },
        "2f3379ea-NumericOperator": {
            "name": "NumericOperator",
            "inputs": {
                "lhs": {
                    "link": "main:b779c5b6-GetAlembicCamera:[node]/outputs/pos",
                    "type": "NumericObject",
                    "default-value": null,
                    "control": {
                        "name": "Float"
                    }
                },
                "rhs": {
                    "link": null,
                    "type": "NumericObject",
                    "default-value": 0.009999999776482582,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {
                "op_type": {
                    "value": "mul",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "add",
                            "sub",
                            "mul",
                            "div",
                            "mod",
                            "and",
                            "or",
                            "xor",
                            "shr",
                            "shl",
                            "cmpge",
                            "cmple",
                            "cmpgt",
                            "cmplt",
                            "cmpne",
                            "cmpeq",
                            "land",
                            "lor",
                            "pos",
                            "neg",
                            "inv",
                            "not",
                            "atan2",
                            "pow",
                            "max",
                            "min",
                            "fmod",
                            "dot",
                            "cross",
                            "distance",
                            "length",
                            "normalize",
                            "abs",
                            "sqrt",
                            "sin",
                            "cos",
                            "tan",
                            "asin",
                            "acos",
                            "atan",
                            "exp",
                            "log",
                            "floor",
                            "ceil",
                            "toint",
                            "tofloat",
                            "anytrue",
                            "alltrue",
                            "copy",
                            "copyr"
                        ]
                    },
                    "type": "enum add sub mul div mod and or xor shr shl cmpge cmple cmpgt cmplt cmpne cmpeq land lor pos neg inv not atan2 pow max min fmod dot cross distance length normalize abs sqrt sin cos tan asin acos atan exp log floor ceil toint tofloat anytrue alltrue copy copyr"
                }
            },
            "outputs": {
                "ret": {
                    "type": "NumericObject"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -730.3709687574882,
                3114.8773046958747
            ],
            "options": []
        },
        "4cae016f-CihouMayaCameraFov": {
            "name": "CihouMayaCameraFov",
            "inputs": {
                "fit_gate": {
                    "link": null,
                    "type": "enum Horizontal Vertical",
                    "default-value": "Horizontal",
                    "control": {
                        "name": "Enum",
                        "items": [
                            "Horizontal",
                            "Vertical"
                        ]
                    }
                },
                "focL": {
                    "link": "main:b779c5b6-GetAlembicCamera:[node]/outputs/focal_length",
                    "type": "float",
                    "default-value": 35.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "fw": {
                    "link": null,
                    "type": "float",
                    "default-value": 36.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "fh": {
                    "link": null,
                    "type": "float",
                    "default-value": 28.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "nx": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "ny": {
                    "link": null,
                    "type": "float",
                    "default-value": 0.0,
                    "control": {
                        "name": "Float"
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "fov": {
                    "type": "float"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -848.3799859406895,
                4263.314843119546
            ],
            "options": []
        },
        "b779c5b6-GetAlembicCamera": {
            "name": "GetAlembicCamera",
            "inputs": {
                "abctree": {
                    "link": "main:ed832fe0-ReadAlembic:[node]/outputs/abctree",
                    "type": "ABCTree",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "pos": {
                    "type": ""
                },
                "up": {
                    "type": ""
                },
                "right": {
                    "type": ""
                },
                "focal_length": {
                    "type": ""
                },
                "near": {
                    "type": ""
                },
                "far": {
                    "type": ""
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -1684.8506774865987,
                3349.323638652901
            ],
            "options": []
        },
        "ed832fe0-ReadAlembic": {
            "name": "ReadAlembic",
            "inputs": {
                "path": {
                    "link": null,
                    "type": "readpath",
                    "default-value": "C:/share/test/YYKMS_Cam/source/abc/cam_vip.abc",
                    "control": {
                        "name": "read path"
                    }
                },
                "frameid": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                },
                "SRC": {
                    "link": null,
                    "type": "",
                    "default-value": null,
                    "control": {
                        "name": ""
                    }
                }
            },
            "params": {},
            "outputs": {
                "abctree": {
                    "type": "ABCTree"
                },
                "DST": {
                    "type": ""
                }
            },
            "uipos": [
                -2496.9988958381597,
                3458.194027078124
            ],
            "options": []
        }
    }
}

@zhxx1987 zhxx1987 merged commit 8f76185 into master Jul 31, 2023
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants